package com.qidian.mes.device.service.impl;

import com.qidian.common.pojo.MESResult;
import com.qidian.mes.device.mapper.HouseMapper;
import com.qidian.mes.device.service.HouseService;
import com.qidian.mes.pojo.House;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 刘泽磊
 * @Company 起点编程
 * @Description
 * @Time 2024/10/25 10:38
 */
@Service
public class HouseServiceImpl implements HouseService {
    @Autowired
    private HouseMapper houseMapper;
    @Override
    public MESResult select(House house) {
        return MESResult.success(houseMapper.select(house));
    }

    @Override
    public MESResult insert(House house) {
        return MESResult.success(houseMapper.insert(house));
    }

    @Override
    public MESResult update(House house) {
        return MESResult.success(houseMapper.update(house));
    }

    @Override
    public MESResult selectById(Long houseId) {
        return MESResult.success(houseMapper.selectById(houseId));
    }

    @Override
    public MESResult delete(Long houseId) {
        return MESResult.success(houseMapper.delete(houseId));
    }
}
